﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for DTO_News
/// </summary>
public class DTO_News
{
    private int _id;
    private string _title;
    private string _contents;
    private string _date;
    private string _image;
    private int _type;
    private int _status;

    public int ID
    {
        get { return _id; }
        set { _id = value; }
    }
    public string Title
    {
        get { return _title; }
        set { _title = value; }
    }
    public string Contents
    {
        get { return _contents; }
        set { _contents = value; }
    }
    public string Date
    {
        get { return _date; }
        set { _date = value; }
    }
    public string Image
    {
        get { return _image; }
        set { _image = value; }
    }
    public int Type
    {
        get { return _type; }
        set { _type = value; }
    }
    public int Status
    {
        get { return _status; }
        set { _status = value; }
    }
	public DTO_News()
	{
        _id = 0;
        _title = "";
        _contents = "";
        _date = "";
        _image = "";
        _type = 1;
        _status = 1;
	}
    public DTO_News(int id, string title, string contents, string date, string image, int type, int status)
    {
        this.ID = id;
        this.Title = title;
        this.Contents = contents;
        this.Date = date;
        this.Image = image;
        this.Type = type;
        this.Status = status;
    }
    public DTO_News(DTO_News obj)
    {
        this.ID = obj.ID;
        this.Title = obj.Title;
        this.Contents = obj.Contents;
        this.Date = obj.Date;
        this.Image = obj.Image;
        this.Type = obj.Type;
        this.Status = obj.Status;
    }
}